package com.vchello.bean.file;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 
 * @author power 文件
 */
@TableName("file")
public class File extends Model<File> {

	private static final long serialVersionUID = 1L;

	@TableId("id")
	private int id;

	@TableField("fid")
	private int fid;

	@TableField("name")
	private String name;

	@TableField("size")
	private float size;

	@TableField("original_name")
	private String originalName;

	@TableField("url")
	private String url;

	@TableField("create_time")
	private String createTime;

	public File() {
		super();
	}

	public File(int fid, String name, float size, String originalName, String url, String createTime) {
		super();
		this.fid = fid;
		this.name = name;
		this.size = size;
		this.originalName = originalName;
		this.url = url;
		this.createTime = createTime;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getFid() {
		return fid;
	}

	public void setFid(int fid) {
		this.fid = fid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public float getSize() {
		return size;
	}

	public void setSize(float size) {
		this.size = size;
	}

	public String getOriginalName() {
		return originalName;
	}

	public void setOriginalName(String originalName) {
		this.originalName = originalName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}